package com.ruoyi.web.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 食材对象 food_ingredient
 *
 * @author xian_pei
 * @date 2024-06-13
 */
public class FoodIngredient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 食材id */
    private Long ingredientId;

    /** 食材名称 */
    @Excel(name = "食材名称")
    private String name;

    /** 食材水分g/100g */
    @Excel(name = "食材水分g/100g")
    private Long water;

    /** 食材能量kJ/100g */
    @Excel(name = "食材能量kJ/100g")
    private Long energy;

    /** 食材蛋白质g/100g */
    @Excel(name = "食材蛋白质g/100g")
    private Long protein;

    /** 食材脂肪g/100g */
    @Excel(name = "食材脂肪g/100g")
    private Long fat;

    /** 胆固醇mg/100g */
    @Excel(name = "胆固醇mg/100g")
    private Long cholesterol;

    /** 灰质g/100g */
    @Excel(name = "灰质g/100g")
    private Long ash;

    /** 碳水化合物g/100g */
    @Excel(name = "碳水化合物g/100g")
    private Long cho;

    /** 总膳食纤维g/100g */
    @Excel(name = "总膳食纤维g/100g")
    private Long dietaryFiber;

    /** 创建时间 */
    private Date creatTime;

    public void setIngredientId(Long ingredientId)
    {
        this.ingredientId = ingredientId;
    }

    public Long getIngredientId()
    {
        return ingredientId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setWater(Long water)
    {
        this.water = water;
    }

    public Long getWater()
    {
        return water;
    }
    public void setEnergy(Long energy)
    {
        this.energy = energy;
    }

    public Long getEnergy()
    {
        return energy;
    }
    public void setProtein(Long protein)
    {
        this.protein = protein;
    }

    public Long getProtein()
    {
        return protein;
    }
    public void setFat(Long fat)
    {
        this.fat = fat;
    }

    public Long getFat()
    {
        return fat;
    }
    public void setCholesterol(Long cholesterol)
    {
        this.cholesterol = cholesterol;
    }

    public Long getCholesterol()
    {
        return cholesterol;
    }
    public void setAsh(Long ash)
    {
        this.ash = ash;
    }

    public Long getAsh()
    {
        return ash;
    }
    public void setCho(Long cho)
    {
        this.cho = cho;
    }

    public Long getCho()
    {
        return cho;
    }
    public void setDietaryFiber(Long dietaryFiber)
    {
        this.dietaryFiber = dietaryFiber;
    }

    public Long getDietaryFiber()
    {
        return dietaryFiber;
    }
    public void setCreatTime(Date creatTime)
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime()
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("ingredientId", getIngredientId())
                .append("name", getName())
                .append("water", getWater())
                .append("energy", getEnergy())
                .append("protein", getProtein())
                .append("fat", getFat())
                .append("cholesterol", getCholesterol())
                .append("ash", getAsh())
                .append("cho", getCho())
                .append("dietaryFiber", getDietaryFiber())
                .append("creatTime", getCreatTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
